package com.it.rabbitmqwithjiang.Config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//生产者消费者模式的配置,包括一个队列和两个对应的消费者
@Configuration
public class DefaultDirectConfig {
	/*        --------->C1
	   P ----
	         ---------->C2
	 * */
	 	@Bean
	    public Queue myQueue() {
	       Queue queue=new Queue("defaultDirect");
	       return queue;
	    }


}
